package org.linloong.config.system;


import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author dbo
 */
@Configuration
public class Knife4jConfig {

    @Bean
    public OpenAPI apiInfo() {
        return new OpenAPI()
                .info(new Info()
                        .title("Spring Boot 3 + Knife4j 示例")
                        .description("服务端接口说明")
                        .version("1.0.0")
                        .contact(new Contact()
                                .name("xiaoymin")
                                .url("https://doc.xiaominfo.com")
                                .email("xiaoymin@foxmail.com")));
    }
}
